export {}

// let arr = [1,'1','abc']

let arr: string[] = ['1']
arr.push('100')

let arr2: Array<string> = ['a']

// 如何定义一个数组，它的元素可以是字符串，也可以是数值

let arr3: (number | string)[] = ['1',1]
arr3.push(1)
arr3.push('1')
// arr3.push(false)

let arr4 = []
arr4.push(1)
arr4.push('1')
arr4.push(true)

